package com.zisu.a996.lambda.cart;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: 蔡翔
 * @Date: 2019/11/21 15:28
 * @Version 1.0
 */
public class CartService {
    private static List<Sku> cartSkuList = new ArrayList<Sku>(){
        {
            add(new Sku(2213,"无人机",455.5,33333.3,SkuCategory.ELECTRONICS));

            add(new Sku(2214,"VR一体机",456.5,33333.3,SkuCategory.ELECTRONICS));

            add(new Sku(2215,"手机",456.5,33333.3,SkuCategory.ELECTRONICS));

            add(new Sku(16,"篮球",456.5,33333.4,SkuCategory.SPORT));

            add(new Sku(27,"主球",456.5,33333.3,SkuCategory.SPORT));

            add(new Sku(28,"打排球",456.5,33333.3,SkuCategory.SPORT));

            add(new Sku(2219,"跳舞",456.5,33333.3,SkuCategory.SPORT));

            add(new Sku(29,"java书记",46.5,33333.3,SkuCategory.BOOK));

            add(new Sku(28,"裤子",46.5,33333.3,SkuCategory.CLOTHING));

            add(new Sku(21,"衣服",46.5,33333.3,SkuCategory.CLOTHING));



        }
    };
    /**
     *获取商品信息
     **/
    public static List<Sku> getCartSkuList(){
        return cartSkuList;
    }

    /**
     *找出购物车中所有的电子产品
     **/
    public List<Sku> filterElectronsSku(List<Sku> cartSkuList){
        return null;
    }
}
